package com.sgj.common.exception;

import lombok.Data;

/**
 * @Author: Guoji Shen
 * @Date: 2021/9/27 13:59
 */
@Data
public class NoStockException extends RuntimeException{

    /**
     * 商品id
     */
    private Long skuId;

    public NoStockException(Long skuId) {
        super("商品id：" + skuId + ",没有足够的库存了");
    }
}